$(function() {
	$('#submit').on('click',
		function(){
			var un = $("#username").val();
			var pw = $("#password").val();
			$.post(BASE.baseUrl + '/user/login',
				{
					username : un,
					password : pw
				},
				function(data){
					var code = data.code;
					var msg = data.msg;
					var url = data.url;
					if(code != "200"){
						$("#notice").html(msg);
					}else{
						location.href = BASE.baseUrl+url;
					}
				} 
				,"json");
	});
})